x = [0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
7
7.5
8
8.5
9
9.5
10
10.5
11
11.5
12
12.5
13
13.5
14
14.5
15
15.5
16
16.5
17
17.5
18
18.5
19
19.5
20
20.5
21
21.5
22
22.5
];

y1 = [15
13.955
12.985
12.09
11.27
10.53
9.87
9.3
8.82
8.425
8.135
7.945
7.89
7.955
8.16
8.505
8.99
9.595
10.265
10.885
11.34
11.615
11.775
11.905
12.035
12.185
12.36
12.555
12.78
13.025
13.295
13.58
13.885
14.205
14.54
14.88
15.225
15.58
15.94
16.105
16.28425
16.3385
16.4995
16.60125
16.7685
16.853
];

y2 = [8.5
8.975
9.28
9.46
9.65
9.95
10.2
10.45
10.75
10.975
11.275
11.385
11.456
11.565
11.684
11.865
11.974
12.158
12.278
12.3667
12.3675
12.4012
12.46125
12.62
12.775
12.93625
13.16625
13.3725
13.62375
13.85125
14.11
14.39875
14.675
14.9775
15.28
15.55125
15.84
16.115
16.385
16.55375
16.703375
16.798
16.97975
17.094375
17.2605
17.38525
];


y3 = [15
14.7075
14.4225
14.25
13.9875
13.7625
13.485
13.275
13.11
12.9525
12.8025
12.6975
12.6
12.54
12.51
12.4875
12.5025
12.5325
12.615
12.6825
12.795
12.9675
13.1475
13.335
13.515
13.6875
13.9725
14.19
14.4675
14.6775
14.925
15.2175
15.465
15.75
16.02
16.2225
16.455
16.65
16.83
17.0025
17.1225
17.2575
17.46
17.5875
17.7525
17.9175
];

x11=linspace(min(x),max(x));
y11=interp1(x,y1,x11,'cubic');

x22=linspace(min(x),max(x));
y22=interp1(x,y2,x22,'cubic');

x33=linspace(min(x),max(x));
y33=interp1(x,y3,x33,'cubic');

Line1 = line(x11,y11);
Line2 = line(x22,y22);
Line3 = line(x33,y33);

set(Line1, 'LineStyle', '--','LineWidth', 1,  'Color', [132  94  194]/255)
set(Line2, 'LineStyle', '--','LineWidth', 1,  'Color', [44  115  210]/255)
set(Line3, 'LineStyle', '--','LineWidth', 1,  'Color', [0  143  122]/255)

% 坐标区调整
set(gca, 'Box', 'off', ...                                % 边框
         'TickDir', 'out', 'TickLength', [.01 .01], ...   % 刻度
         'XMinorTick', 'off', 'YMinorTick', 'off', ...    % 小刻度
         'XColor', [.1 .1 .1],  'YColor', [.1 .1 .1],...  % 坐标轴颜色
         'XTick', 0:5:40,  'YTick', 6:2:20,...     % 刻度位置、间隔
         'Xlim' ,[0 30],'Ylim' ,[6 20], ...          % 坐标轴范围
         'Xticklabel',{[0:5:40]},...                   % X坐标轴刻度标签
         'Yticklabel',{[6:2:20]})                     % Y坐标轴刻度标签
% X、Y轴标签及Legend
hXLabel = xlabel('Time (s)');
hYLabel = ylabel('speed (m/s)');
hLegend = legend([Line1,Line2,Line3], ...
                 'FV', 'SV','LV', ...
                 'Location', 'northeast');
% 刻度标签字体和字号
set(gca, 'FontName', 'Times', 'FontSize', 9)
% X、Y轴标签及Legend的字体字号 
set([hXLabel, hYLabel,hLegend], 'FontName',  'Helvetica')
set([hXLabel, hYLabel,hLegend], 'FontSize', 10)
% 背景颜色
set(gca,'Color',[1 1 1])
